package com.hle.ks;

public class Artice {
	//  Artice 出了文章，还有物品的意思
	
	int weight; 
	int value;
	int num;
	
	double valueDensity;

	public Artice(int weight, int value, int num) {
		this.weight = weight;
		this.value = value;
		this.num = num;
		this.valueDensity = value * 1.0 / weight;
	}

	@Override
	public String toString() {
		return "Artice [weight=" + weight + ", value=" + value + ", valueDensity=" + valueDensity + "]";
	}	

}
